home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Reference Guide
/
C-C++ Interactive Reference Guide.iso
/
c_ref
/
csource3
/
144_01
/
head.hlp
< prev
next >
Wrap
Text File
|
1985-08-21
|
2KB
|
46 lines
**********************************************************************
* HEAD *
**********************************************************************
* COPYRIGHT 1983 EUGENE H. MALLORY *
**********************************************************************
PROGRAM:
HEAD- Identifies and lists the first 10 lines of a list of files.
USAGE:
HEAD afn ... [>fid]
FUNCTION:
This accepts a list of file names either on the command line or
from the standard input. File names in the command line may be
afn's. File names in the standard input may not be afn's. The
files are read in alphabetical order from the command line list
first, then, in order from the input list, if any. As each file
is read, the file name is output, a blank line is output, the
first 10 lines of the files is output and 2 blank lines are
appended. This is similar to CAT in operation.
Unless piping is used or the standard input is assigned to a file
(i.e. <file), only the command line arguments will be used as
file names.
EXAMPLE:
HEAD *.HLP
LS *.HLP |HEAD
Command Line
___________________________________
|
|
| LIST OF AMBIGUOUS FILE NAMES
|
|
______________V______________
Standard Input | | Standard Output
LIST OF FILE NAMES | | SUMMARY OF FILE TOPS
------------------->| HEAD |----------------------->
| |
| |
|___________________________|